<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <js file="__PUBLIC__/Js/ghulam.js"/>
</head>
<body>

<form action="{:U('Admin/Category/sort_category')}" method="post">
    <table class="table table-striped table-hover">
        <tr><td colspan="5"><a href="{:U(GROUP_NAME.'/Category/addcategory')}"><h3>添加栏目</h3></a></td></tr>
        <tr>
            <th>栏目中文名称</th>
            <th>栏目英文名称</th>
            <th>排序</th>
            <th>操作</th>
        </tr>
        <foreach name="cate" item="v">
            <tr>
                <td>
                    {$v.name}
                </td>
                <td>
                    {$v.en_name}
                </td>
                <td><input class="form-control text" name="{$v.id}" value="{$v.sort}"></td>
                <td>
                    <a  class="btn button-royal btn-xs" href="{:U(GROUP_NAME.'/Category/child_index',array('pid'=>$v['id'],'p_name'=>$v['en_name']))}">子栏目</a>
                    <a  class="label label-primary " href="{:U(GROUP_NAME.'/Category/editcategory',array('pid'=>$v['id']))}">修改</a>
                    <a  class="btn btn-danger btn-xs" href="{:U(GROUP_NAME.'/Category/deletecategory',array('pid'=>$v['id']))}" onclick="return del()"><b>删除</b></a> </td>
            </tr>
        </foreach>
        <tr>
            <td colspan="5" align="center">
                <input  style="width:200px" class="btn btn-primary" type="submit" value="保存" >
            </td>
        </tr>
    </table>
</form>
<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/bootstrap/css/button.css" rel="stylesheet">
<script src="__PUBLIC__/bootstrap/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.js"></script>
</body>
</html>